<?php

require_once('inc.config.php');

$useTemplate   = 'qqhouse_list.html';

$page = new QuickSkin ($useTemplate );

template_ini($page);

//搜索条件
$condition = array(
	"ruserprop" => $_REQUEST["s_prop"],
	"title" => $_REQUEST["s_title"],
	"type" => $_REQUEST["s_type"],
	"ispublic" => 1
);

if($_REQUEST["s_page"]==""||!isset($_REQUEST["s_page"])){$_REQUEST["s_page"]=1;}

$page->assign("indexcls" , "bfont");

$goldlist = $myAgent->getGoldenList();
$result = $myQgqzhouse->getQgList($condition , 1 , $_REQUEST["s_page"]);
$totalnum = $myQgqzhouse->getSearchNum($condition);
//$totalnum = $myHouse->getSearchPage($condition , __search_shouse_num__);
$tp = ceil($totalnum/__search_qhouse_num__);
//$pl = $myHouse->getSearchPlaza();
$clist = $myHouse->getCollection();

$page->assign("goldlist" , $goldlist);

$page->assign("qgqzlist" , $result);
$page->assign("total" , $totalnum);
$page->assign("totalpage" ,$tp);
//$page->assign("plazalist" , $pl);
$page->assign("clist" , $clist);
$page->assign($_REQUEST);
$page->assign("indexcls" , "nv_current");
$page->output();


ob_end_flush();

?>